<?php

//防止恶意调用
if (!defined('IN_MOD'))
{
    die('Hacking attempt');
}

// 扩展默认模块配置
if($configinfo['configmodule'] == "list")
{
	include_once($configinfo['tplurl'].'/configmodule/configmodule/module/article/article.php');
}
if($configinfo['configmodule'] == "detail")
{
	include_once($configinfo['tplurl'].'/configmodule/configmodule/module/article/article_detail.php');
}

// 扩展公用模块配置
include_once($configinfo['tplurl'].'/configmodule/configmodule/module/config.php');

// 扩展其它模块配置
if($configinfo['configmodule'] == "list")
{
	if($tplmodulenamedir && $tplmodulenamefile)
	{
		include_once($configinfo['tplurl'].'/configmodule/configmodule/module/'.$tplmodulenamedir.'/'.$tplmodulenamefile.'.php');
	}
	$parametersmarty = getparametersmarty($topid);
	// 新增配置切换模板
	if(isset($configinfo['smartyok']) && isset($configinfo['smartyname']))
	{
		if($configinfo['smartyok'] == 1)
		{
			$parametersmarty = $configinfo['smartyname'];
		}
	}
}
if($configinfo['configmodule'] == "detail")
{
	if($tplmodulenamedir && $tplmodulenamefile)
	{
		include_once($configinfo['tplurl'].'/configmodule/configmodule/module/'.$tplmodulenamedir.'/'.$tplmodulenamefile.'_detail.php');
	}
	$parametersmarty = getparametersmarty($topid, 'detail');
	// 新增配置切换模板
	if(isset($configinfo['smartyok']) && isset($configinfo['smartyname']))
	{
		if($configinfo['smartyok'] == 1)
		{
			$parametersmarty = $configinfo['smartyname'];
		}
	}
}
?>